﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HCQ2_Model.Pay;

namespace HCQ2_Model.Data
{
    /// <summary>
    /// 带有分页参数和用户id的实体
    /// </summary>
    public class PageUser:PayUser
    {
        /// <summary>
        /// 【必填】页码
        /// </summary>
        [Required(ErrorMessage = "页码不能为空")]
        [Range(1,10000000000,ErrorMessage ="页码最小=1")]
        public int page { get; set; } = 1;
        /// <summary>
        /// 【必填】每页大小
        /// </summary>
        [Required(ErrorMessage = "每页大小不能为空")]
        [Range(1, 10000000000, ErrorMessage = "每页大小最小=1")]
        public int rows { get; set; } = 20;
    }
}
